# -*- coding: utf-8 -*-
"""
Created on Fri Sep 28 15:38:31 2012

@author: daniel
"""
import sys
FREECADPATH = '/usr/lib/freecad/lib' # path to your FreeCAD.so or FreeCAD.dll file
sys.path.append(FREECADPATH)
import FreeCADGui
import FreeCAD
import Draft
import Part
import os
import numpy

FreeCAD.newDocument('test')
points=[FreeCAD.Vector(1.11162757874,0.741084873676,0.0),FreeCAD.Vector(-2.7989192009,1.25719761848,0.0),FreeCAD.Vector(-3.65248990059,-0.059551473707,0.0),FreeCAD.Vector(-0.73446804285,-1.29689872265,0.0),FreeCAD.Vector(0.542580187321,0.337458372116,0.0),FreeCAD.Vector(0.800636351109,0.688150286674,0.0),FreeCAD.Vector(1.40276777744,0.708000779152,0.0)]
spln=Draft.makeBSpline(points,closed=False,face=False,support=None)
objs=[]
#objs.append(FreeCAD.getDocument("test").getObject("BSpline001"))
Part.export([spln],"/home/daniel/Documents/test2.igs")
